home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutord.EXE
/
17.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-09-17
|
584b
|
31 lines
/*
There may be additional include files required depending
upon the compile product you are using. Typical compilers
include Microsoft C by Microsoft or Turbo C by Boland Int'l.
*/
#include <stdio.h>
main()
{
int a, b, c;
a=1; b=2; c=8;
a= c - (a+b) ; /* a is 5 */
printf("a is %d\n",a);
b = a * (c/b) ; /* b is 20 */
printf("b is %d\n",b);
b = 9%3 ; /* b is 0 */
printf("b is %d\n",b);
c = 25%7 ; /* c is 4 */
printf("c is %d\n",c);
b=1;
c = a * c - b; /* c is 10 - remember the previous operations */
printf("c is %d\n",c);
}